<!-- 初始界面 -->
<template>
    <el-container class="home_container">
        <el-header class="el-header">
            <el-menu
                :default-active="activeIndex"
                class="el-menu-demo"
                mode="horizontal"
                background-color="#545c64"
                text-color="#fff"
                active-text-color="#ffd04b"
                router
            >
                <el-menu-item index="/welcome">首页</el-menu-item>
                <el-menu-item index="/setting">设置</el-menu-item>
            </el-menu>
        </el-header>
        <el-main class="el-main">
            <router-view></router-view>
        </el-main>
    </el-container>
</template>

<script>
export default {
    name: "Home",
    data() {
        return {
            activeIndex: "1",
        };
    },
    methods: {
        handleSelect(key, keyPath) {
            console.log(key, keyPath);
        },
    },
};
</script>

<style lang="scss"  scoped>
.home_container {
    height: 100%;
    overflow: hidden;
}

.el-header {
    background-color: #373d41;
    display: flex;
    justify-content: space-between;
    padding-left: 0%;
    align-items: center;
    color: #ffffff;
    font-size: 20px;
}

/* 主题的样式 */
.el-main {
    background-color: #eaedf1;
    height: 100%;
}
</style>
